<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp" %>
<html>
<head>
    <title>设备组管理</title>
    <meta name="decorator" content="nblank"/>
</head>
<body>
<div class="content container">
    <h2 class="page-title">设备组管理
        <small>&nbsp组设备列表</small>
    </h2>
    <section class="widget widget-tabs widget-table-overflow ">
        <header>
            <ul class="nav nav-tabs">
                <li><a href="${ctx}/biz/equgroup/list">设备组列表</a></li>
                <li class="active"><a href="${ctx}/biz/equgrpitem/list?group.id=${item.group.id}">组设备列表&nbsp(${item.group.name})</a></li>
                <li><a href="${ctx}/biz/equgrpitem/form?group.id=${item.group.id}">设备新增&nbsp(${item.group.name})</a></li>
            </ul>
        </header>
        <%--<biz:message content="${message}"/>--%>
        <div class="body tab-content">
            <table id="contentTable" class="table table-striped table-condensed">
                <tr>
                    <td>ID</td>
                    <th>名称</th>
                    <th>类型</th>
                    <th>操作</th>
                </tr>
                <c:forEach items="${list}" var="equip">
                    <tr>
                        <td>${equip.id}</td>
                        <td>${equip.name}</td>
                        <td>${equip.equipment.name}</td>
                        <td>
                            <a href="${ctx}/biz/equgrpitem/form?id=${equip.id}&group.id=${item.group.id}">修改</a>
                            <a href="${ctx}/biz/equgrpitem/delete?id=${equip.id}&group.id=${item.group.id}" class="no-pjax" onclick="confirmx('确认要从该组中删除该设备吗？', this.href);return false;">删除</a>
                        </td>
                    </tr>
                </c:forEach>
            </table>
        </div>
    </section>
</div>
</body>
</html>